package com.guo.hui.controller;

import com.guo.hui.enity.User;
import com.guo.hui.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping(value = "/hello")
public class HelloController {

    @ResponseBody
    @RequestMapping(value = "/name")
    public String login(String name){
        return name + "world！";
    }

    @ResponseBody
    @RequestMapping(value = "/type")
    public String index(String name){
        return name + "hello！";
    }

}
